/** ********************************************************************
 * File:           Tamil.java
 * Description:    Conversion from english to Tamil.(Right now it converts numbers only)
 * Authors:        Akshay,Abhinava,Revati,Arun
 * Created:        Wed Jan 7 01:31:25 IST 2009
 *
 * (C) Copyright 2008, MILE Lab, IISc
 ** Licensed under the Apache License, Version 2.0 (the "License");
 ** you may not use this file except in compliance with the License.
 ** You may obtain a copy of the License at
 ** http://www.apache.org/licenses/LICENSE-2.0
 ** Unless required by applicable law or agreed to in writing, software
 ** distributed under the License is distributed on an "AS IS" BASIS,
 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ** See the License for the specific language governing permissions and
 ** limitations under the License.
 *
 **********************************************************************/
package core;

public class Tamil {

	public char convert(char inp) {
		// StringBuilder a = new StringBuilder();
		char a = 0;
		try {
			switch (inp) {
			case '0':
				a = '\u0BE6';
				break;
			case '1':
				a = '\u0BE7';
				break;
			case '2':
				a = '\u0BE8';
				break;
			case '3':
				a = '\u0BE9';
				break;
			case '4':
				a = '\u0BEA';
				break;
			case '5':
				a = '\u0BEB';
				break;
			case '6':
				a = '\u0BEC';
				break;
			case '7':
				a = '\u0BED';
				break;
			case '8':
				a = '\u0BEE';
				break;
			case '9':
				a = '\u0BEF';
				break;
			case '\b':
				a = '\b';
				break;
			case ' ':
				a = ' ';
				break;
			case '\n':
				a = '\n';
				break;
			case '\r':
				a = '\r';
				break;
			case '\t':
				a = '\t';
				break;
			default:
				a = inp;
				break;
			}

		} catch (StringIndexOutOfBoundsException e) {
		} catch (IllegalArgumentException e) {
		}

		return a;
	}
}